<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Navo Portable Library: navo/algorithm/nonlinear/binary/rblnk.h文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- 制作者 Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Navo Portable Library&#160;<span id="projectnumber">Ver 1.0.20120827</span></div>
   <div id="projectbrief">Provides generic platform independent facilities.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="modules.html"><span>模块</span></a></li>
      <li><a href="annotated.html"><span>数据结构</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>全局定义</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">数据结构</a> &#124;
<a href="#define-members">宏定义</a> &#124;
<a href="#typedef-members">类型定义</a> &#124;
<a href="#func-members">函数</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle">
<h1>navo/algorithm/nonlinear/binary/rblnk.h文件参考</h1>  </div>
</div>
<div class="contents">

<p>Red-black linked tree.  
<a href="#_details">更多...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="cdef_8h_source.html">../../../port/cdef.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="integer_8h_source.html">../../../port/integer.h</a>&quot;</code><br/>
</div>
<p><a href="rblnk_8h_source.html">浏览该文件的源代码。</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
数据结构</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrblnk__root.html">rblnk_root</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">树根  <a href="structrblnk__root.html#_details">更多...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrblnk__info.html">rblnk_info</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">树信息表  <a href="structrblnk__info.html#_details">更多...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="define-members"></a>
宏定义</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab8796eb3cdf33a93827ac2925a57b691"></a><!-- doxytag: member="rblnk.h::__NV_RBLNK__" ref="ab8796eb3cdf33a93827ac2925a57b691" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>__NV_RBLNK__</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gae745aa0b0431feab965f3085e9df84e4"></a><!-- doxytag: member="rblnk.h::RBLNK_RED" ref="gae745aa0b0431feab965f3085e9df84e4" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>RBLNK_RED</b>&#160;&#160;&#160;0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga9a2f81967b64bbde184dffabd4fcd1a2"></a><!-- doxytag: member="rblnk.h::RBLNK_BLACK" ref="ga9a2f81967b64bbde184dffabd4fcd1a2" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>RBLNK_BLACK</b>&#160;&#160;&#160;1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga670e6708b4a431512eda374f639810cb"></a><!-- doxytag: member="rblnk.h::RBLNK_MASK" ref="ga670e6708b4a431512eda374f639810cb" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>RBLNK_MASK</b>&#160;&#160;&#160;1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaaa8949a7bdda2793991e712c199486f8">RBLNK_ROOT</a>(name)&#160;&#160;&#160;<a class="el" href="structrblnk__root.html">rblnk_root</a> name = {NULL}</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">定义一个名为name的树根，并对其初始化  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaaa8949a7bdda2793991e712c199486f8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga4889bf1e394402788acfc1a1de99be56">RBLNK_NODE</a>(name)&#160;&#160;&#160;<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> name = {0, NULL, NULL}</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">定义一个名为name的节点，并对其初始化  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga4889bf1e394402788acfc1a1de99be56"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaaa24fda3c1fa1489183288f405261c3a">RBLNK_INFO</a>(name)&#160;&#160;&#160;<a class="el" href="structrblnk__info.html">rblnk_info</a> name = {0, 0, 0}</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">定义一个名为name的树信息表，并对其初始化  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaaa24fda3c1fa1489183288f405261c3a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gabed6ad3d2a4042d6a2c382515eb95393"></a><!-- doxytag: member="rblnk.h::rblnk_inc" ref="gabed6ad3d2a4042d6a2c382515eb95393" args="(itr)" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gabed6ad3d2a4042d6a2c382515eb95393">rblnk_inc</a>(itr)&#160;&#160;&#160;((itr) = rblnk_next(itr))</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">迭代器递增 <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga5eef1427f5a3b2719c945271d9daeab6"></a><!-- doxytag: member="rblnk.h::rblnk_dec" ref="ga5eef1427f5a3b2719c945271d9daeab6" args="(itr)" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga5eef1427f5a3b2719c945271d9daeab6">rblnk_dec</a>(itr)&#160;&#160;&#160;((itr) = rblnk_prev(itr))</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">迭代器递减 <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga8c62a05a3806b173f707611bdd76a1b0"></a><!-- doxytag: member="rblnk.h::rblnk_inc_later" ref="ga8c62a05a3806b173f707611bdd76a1b0" args="(itr)" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga8c62a05a3806b173f707611bdd76a1b0">rblnk_inc_later</a>(itr)&#160;&#160;&#160;__rblnk_inc_later(itr, &amp;(itr))</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">迭代器后自增 <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga4565f33ce42fa4b1915ceb138646ba2c"></a><!-- doxytag: member="rblnk.h::rblnk_dec_later" ref="ga4565f33ce42fa4b1915ceb138646ba2c" args="(itr)" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga4565f33ce42fa4b1915ceb138646ba2c">rblnk_dec_later</a>(itr)&#160;&#160;&#160;__rblnk_dec_later(itr, &amp;(itr))</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">迭代器后自减 <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga5b33334a44a642a1bf038efb405cd749">rblnk_foreach</a>(_begin, _end, fn, type, member)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">正向遍历_begin到_end的节点，并为每一个节点调用回调函数或宏  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga5b33334a44a642a1bf038efb405cd749"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga0610f520cada9850c8f805072925983b">rblnk_reverse_foreach</a>(_rbegin, _rend, fn, type, member)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">逆向遍历_begin到_end的节点，并为每一个节点调用回调函数或宏  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga0610f520cada9850c8f805072925983b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga709e8c44e4601a37834635c210548668">RBLNK_RECURSE_PROC</a>(name, type, param)&#160;&#160;&#160;void name(type * param)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">定义递归遍历回调函数  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga709e8c44e4601a37834635c210548668"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga6df5839a68f52ca58b94baabc15d770e">rblnk_recurse_foreach</a>(root, fn, type, member)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">正向递归遍历整个树  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga6df5839a68f52ca58b94baabc15d770e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga707fdda966662b8b02188fa4078931ba">rblnk_recurse_reverse_foreach</a>(root, fn, type, member)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">逆向递归遍历整个树  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga707fdda966662b8b02188fa4078931ba"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga338edc24658c52267bcb1ee30527e165">rblnk_search</a>(root, newly, greater, res, type, member)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">搜索树中的某个节点  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga338edc24658c52267bcb1ee30527e165"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gad12070580ff757a695a49faaa9c3cefb">rblnk_insert</a>(root, newly, greater, res, type, member)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">插入新节点  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gad12070580ff757a695a49faaa9c3cefb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gacaec0cfff7eb3001fe7b1d67b2d4fda0">rblnk_serialize</a>(root, buf, type, member)&#160;&#160;&#160;__rblnk_serialize(root, (void**)(buf), offset_of(type, member))</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">将树进行序列化为一个有序序列  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gacaec0cfff7eb3001fe7b1d67b2d4fda0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaa3905e4e6ba16c931fe97b3e43384360">rblnk_deserialize</a>(root, buf, cnt, type, member)&#160;&#160;&#160;__rblnk_deserialize(root, (void**)(buf), cnt, offset_of(type, member))</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">根据树的序列进行反序列化为一个完整的树  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaa3905e4e6ba16c931fe97b3e43384360"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="typedef-members"></a>
类型定义</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga7417aa626d7a0f898b5338b97411d546"></a><!-- doxytag: member="rblnk.h::rblnk_pr1" ref="ga7417aa626d7a0f898b5338b97411d546" args=")(rblnk_node *)" -->
typedef int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga7417aa626d7a0f898b5338b97411d546">rblnk_pr1</a> )(<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">单参数回调函数指针 <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gad5fcd22dbb5992d65297e5663cb81d36"></a><!-- doxytag: member="rblnk.h::rblnk_pr2" ref="gad5fcd22dbb5992d65297e5663cb81d36" args=")(rblnk_node *, rblnk_node *)" -->
typedef int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gad5fcd22dbb5992d65297e5663cb81d36">rblnk_pr2</a> )(<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">双参数回调函数指针 <br/></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
函数</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga7871f46c39842fab09b365dd88ac5cac">intrin_align</a> (2) <a class="el" href="struct____rblnk__node.html">__rblnk_node</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NV_API size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga6fb9e1cd4db306f16e55518361f0ab84">rblnk_count</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">获取树的节点总数  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga6fb9e1cd4db306f16e55518361f0ab84"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NV_API size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga8d93bfeca0ce469728f2b4c735ce106a">rblnk_distance</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> first, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> last)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">计算两个节点的迭代距离  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga8d93bfeca0ce469728f2b4c735ce106a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NV_API size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga1de1ae60df6b6cfa2a6db141b00cc636">rblnk_index_of</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> itr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">计算迭代器的正向索引  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga1de1ae60df6b6cfa2a6db141b00cc636"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NV_API size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga29756a41c72f28650f4469334f43c015">rblnk_reverse_index_of</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> itr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">计算迭代器的逆向索引  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga29756a41c72f28650f4469334f43c015"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NV_API size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gacb852328ee3aacfe2e550c4b54b9949f">rblnk_depth</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">计算树的深度  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gacb852328ee3aacfe2e550c4b54b9949f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NV_API size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gacae9fbde870cca412c6f6faee36ec142">rblnk_leafs</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">计算树的叶子数  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gacae9fbde870cca412c6f6faee36ec142"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NV_API void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga3bf7056c3e0714a8e6aae9e91ce7e01e">rblnk_get_info</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root, <a class="el" href="structrblnk__info.html">rblnk_info</a> *info)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">获取树的信息，包括节点数、深度、叶子数  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga3bf7056c3e0714a8e6aae9e91ce7e01e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NV_API void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gade0f9a8b187659eb069ba5db9d8af195">rblnk_coloring</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *node, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *parent)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">插入节点后，对树进行着色调整  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gade0f9a8b187659eb069ba5db9d8af195"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NV_API void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga451886a62143e4743fafb5b86a5b2a28">rblnk_erase</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *entry)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">移除某个节点  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga451886a62143e4743fafb5b86a5b2a28"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NV_API void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaa931c3dedfb8e0f288017fbf7a03b6b8">rblnk_erases</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> begin, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> end, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga7417aa626d7a0f898b5338b97411d546">rblnk_pr1</a> erase_handler)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">移除区域内的节点  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaa931c3dedfb8e0f288017fbf7a03b6b8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga92211938608f69651c45516f2c85b663">rblnk_init</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化树根  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga92211938608f69651c45516f2c85b663"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga7d050dc86491d48acbf588f40a48900f">rblnk_empty</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">判断树是否为空  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga7d050dc86491d48acbf588f40a48900f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga47a9b1ad06550c96653e53629a4ebe57"></a><!-- doxytag: member="rblnk.h::__rblnk_singular" ref="ga47a9b1ad06550c96653e53629a4ebe57" args="(rblnk_node *root)" -->
static int&#160;</td><td class="memItemRight" valign="bottom"><b>__rblnk_singular</b> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *root)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaab20c46c2eb38254803490536bbc36ac">rblnk_singular</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">判断树是否只有单个节点  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaab20c46c2eb38254803490536bbc36ac"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga65fe4fdebdda77a66bb5b26d4c3c2910">rblnk_serialable</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">判断树是否可以序列化  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga65fe4fdebdda77a66bb5b26d4c3c2910"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gac7e13ffecf675371e361a25d258be3e7">rblnk_left</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *node)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">得到左子节点  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gac7e13ffecf675371e361a25d258be3e7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gabf511bf9afe0448fc2ea1a9feaf77935">rblnk_right</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *node)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">得到右子节点  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gabf511bf9afe0448fc2ea1a9feaf77935"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gac9b28b4b852f74baf30eda817e2144b1">rblnk_parent</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *node)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">得到父节点  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gac9b28b4b852f74baf30eda817e2144b1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static uintptr_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga6abde00d596cf397ea6ccc5e5724f1e0">rblnk_color</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *node)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">得到节点的颜色值  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga6abde00d596cf397ea6ccc5e5724f1e0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga7f6bea5de9fffaed975df98753c20bed">rblnk_red</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *node)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">判断节点是否是红色的  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga7f6bea5de9fffaed975df98753c20bed"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga6e91c6985df0a43de84afc2c55d47c04">rblnk_black</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *node)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">判断节点是否是黑色的  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga6e91c6985df0a43de84afc2c55d47c04"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga40cf982b1d6c159daa42defa32844502">rblnk_is_root</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> itr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">判断当前节点是否是根节点  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga40cf982b1d6c159daa42defa32844502"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga3acf0e85dbc729b064ccc9d696b194d4">rblnk_is_leaf</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> itr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">判断当前节点是否是叶子节点  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga3acf0e85dbc729b064ccc9d696b194d4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gada1dad989f8a0d4cc3d49fefdfbf04fc">rblnk_link</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> newly, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> parent, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> *plink)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">链接两个节点  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gada1dad989f8a0d4cc3d49fefdfbf04fc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga3943690f21dc9dee488c35313f7d093f">rblnk_set_red</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *node)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">设置当前节点的颜色为红色  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga3943690f21dc9dee488c35313f7d093f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga700dde2e01a11e733893be4dccaca0c6">rblnk_set_black</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *node)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">设置当前节点的颜色为黑色  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga700dde2e01a11e733893be4dccaca0c6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gab43d3dd00f5f9797f2e6728804388546">rblnk_set_color</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *node, uintptr_t color)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">设置当前节点的颜色  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gab43d3dd00f5f9797f2e6728804388546"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga6f05bc6d011c149bc85e3667240a6f27">rblnk_set_parent</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *node, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *parent)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">设置当前节点的父节点  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga6f05bc6d011c149bc85e3667240a6f27"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga5474c6caddd6bdba98f8e126d411d580">rblnk_set_parent_if</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *node, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *parent)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">仅在node不为空时，设置node的父节点  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga5474c6caddd6bdba98f8e126d411d580"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga53c43d6dc5b3cb6ab7a416fae7c5f80a">rblnk_set_parent_color</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *node, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *parent, uintptr_t color)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">同时设置节点的父节点和颜色值  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga53c43d6dc5b3cb6ab7a416fae7c5f80a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga553fbabdc6b8bfa429d2a8dd41be744c">rblnk_node_init</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a> *node)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化节点  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga553fbabdc6b8bfa429d2a8dd41be744c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gadfe6e5c9ffa167c1536634f45c9ff8ce">rblnk_iter_replace</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> victim, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> newly)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">用新节点替换旧节点  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gadfe6e5c9ffa167c1536634f45c9ff8ce"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga786e6ac4f90eaed9db8547e2c2a20b72">rblnk_replace</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *victim, <a class="el" href="structrblnk__root.html">rblnk_root</a> *newly)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">用新的树根替换旧树根  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga786e6ac4f90eaed9db8547e2c2a20b72"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga9dacf7edeb485b8997ff6cac7846a0c5">rblnk_swap</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *a, <a class="el" href="structrblnk__root.html">rblnk_root</a> *b)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">交换两个树  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga9dacf7edeb485b8997ff6cac7846a0c5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NV_API int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga43f9873a6ad90b95af037efd8b715313">rblnk_exist</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> itr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">判断一个节点是否存在于树中  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga43f9873a6ad90b95af037efd8b715313"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga282ecc18962ddc54b578df7044dc9de9">rblnk_at</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root, size_t index)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">得到正向索引对应的节点的迭代器  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga282ecc18962ddc54b578df7044dc9de9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf747daec306db3fdfaa6653558ce2062">rblnk_reverse_at</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root, size_t index)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">得到逆向索引对应的节点的迭代器  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf747daec306db3fdfaa6653558ce2062"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NV_API <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gab434b46c3cb032b3114a0c292ee50c52">rblnk_front</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">得到树的最左端节点  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gab434b46c3cb032b3114a0c292ee50c52"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NV_API <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga78d61eaa02e5a1af07b2da867776fd53">rblnk_back</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">得到树的最右端节点  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga78d61eaa02e5a1af07b2da867776fd53"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gad090e3e5ab9b4f09b94e968233554a6b">rblnk_begin</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">得到指向正向起始位置的迭代器  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gad090e3e5ab9b4f09b94e968233554a6b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gac850e7c259076759a9a8d5fde09e2104">rblnk_end</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">得到指向正向终止位置的迭代器  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gac850e7c259076759a9a8d5fde09e2104"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga9af3a349f64b4e1476c529187f24d4bd">rblnk_end_of</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> cur)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">得到当前迭代器的正向终止位置  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga9af3a349f64b4e1476c529187f24d4bd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gae58917b51be46e3525e90954cd3ab664">rblnk_rbegin</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">得到指向逆向起始位置的迭代器  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gae58917b51be46e3525e90954cd3ab664"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga34d7b697a7bff2a1a90796e9c384f293">rblnk_rend</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">得到指向逆向终止位置的迭代器  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga34d7b697a7bff2a1a90796e9c384f293"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaa826e37d560cfadd9527078b7541a8d5">rblnk_rend_of</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> cur)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">得到当前迭代器的逆向终止位置  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaa826e37d560cfadd9527078b7541a8d5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NV_API <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga724a069a61ec122e5a22a515eb6fc1ab">rblnk_next</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> cur)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">得到当前节点的中序后继节点  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga724a069a61ec122e5a22a515eb6fc1ab"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NV_API <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf2372e7e19baf6c5fc1c2d1e46bcda2a">rblnk_prev</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> cur)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">得到当前节点的中序前驱节点  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf2372e7e19baf6c5fc1c2d1e46bcda2a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NV_API <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gae9ac9b2b5c33a92e0306a09346ef32cc">rblnk_advance</a> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> cur, int dist)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">给迭代器增加一段距离或减小一段距离  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gae9ac9b2b5c33a92e0306a09346ef32cc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga7b860940aefd704957bb73e2a56a1584">rblnk_clear</a> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga7417aa626d7a0f898b5338b97411d546">rblnk_pr1</a> erase_handler)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">清空树  <a href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga7b860940aefd704957bb73e2a56a1584"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga1d18837924379fa2a53d666aabbf865f"></a><!-- doxytag: member="rblnk.h::__rblnk_inc_later" ref="ga1d18837924379fa2a53d666aabbf865f" args="(rblnk_iter cur, rblnk_iter *p)" -->
static <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a>&#160;</td><td class="memItemRight" valign="bottom"><b>__rblnk_inc_later</b> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> cur, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> *p)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga720881736f62ddcf7160346b72289f61"></a><!-- doxytag: member="rblnk.h::__rblnk_dec_later" ref="ga720881736f62ddcf7160346b72289f61" args="(rblnk_iter cur, rblnk_iter *p)" -->
static <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a>&#160;</td><td class="memItemRight" valign="bottom"><b>__rblnk_dec_later</b> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> cur, <a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> *p)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gab45f718c0f1e1410b8f33f9c90a374b2"></a><!-- doxytag: member="rblnk.h::__do_rblnk_recurse_foreach" ref="gab45f718c0f1e1410b8f33f9c90a374b2" args="(rblnk_iter cur, void(*fn)(void *), size_t offset)" -->
NV_API void&#160;</td><td class="memItemRight" valign="bottom"><b>__do_rblnk_recurse_foreach</b> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> cur, void(*fn)(void *), size_t offset)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga8179bdfb7e6a453c7139f996d74974b2"></a><!-- doxytag: member="rblnk.h::__do_rblnk_recurse_reverse_foreach" ref="ga8179bdfb7e6a453c7139f996d74974b2" args="(rblnk_iter cur, void(*fn)(void *), size_t offset)" -->
NV_API void&#160;</td><td class="memItemRight" valign="bottom"><b>__do_rblnk_recurse_reverse_foreach</b> (<a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a> cur, void(*fn)(void *), size_t offset)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gae66a0bd5ddce6f134c4d54c9b0868cae"></a><!-- doxytag: member="rblnk.h::__rblnk_recurse_foreach" ref="gae66a0bd5ddce6f134c4d54c9b0868cae" args="(rblnk_root *root, void(*fn)(void *), size_t offset)" -->
static void&#160;</td><td class="memItemRight" valign="bottom"><b>__rblnk_recurse_foreach</b> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root, void(*fn)(void *), size_t offset)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga977586fd382ccb785e9404a3665b08dd"></a><!-- doxytag: member="rblnk.h::__rblnk_recurse_reverse_foreach" ref="ga977586fd382ccb785e9404a3665b08dd" args="(rblnk_root *root, void(*fn)(void *), size_t offset)" -->
static void&#160;</td><td class="memItemRight" valign="bottom"><b>__rblnk_recurse_reverse_foreach</b> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root, void(*fn)(void *), size_t offset)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga546896c29a175cd8ced83882a8dd2327"></a><!-- doxytag: member="rblnk.h::__rblnk_serialize" ref="ga546896c29a175cd8ced83882a8dd2327" args="(rblnk_root *root, void **buf, size_t offset)" -->
NV_API void&#160;</td><td class="memItemRight" valign="bottom"><b>__rblnk_serialize</b> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root, void **buf, size_t offset)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gadb551f3a15cf521487f8d21f8a2942f7"></a><!-- doxytag: member="rblnk.h::__rblnk_deserialize" ref="gadb551f3a15cf521487f8d21f8a2942f7" args="(rblnk_root *root, void **buf, size_t cnt, size_t offset)" -->
NV_API void&#160;</td><td class="memItemRight" valign="bottom"><b>__rblnk_deserialize</b> (<a class="el" href="structrblnk__root.html">rblnk_root</a> *root, void **buf, size_t cnt, size_t offset)</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
变量</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaf7a22577e5f8f2d8c3ab96f378465658"></a><!-- doxytag: member="rblnk.h::rblnk_node" ref="gaf7a22577e5f8f2d8c3ab96f378465658" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#gaf7a22577e5f8f2d8c3ab96f378465658">rblnk_node</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">节点 <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga588a122bb585e30d2dbc7ef1e6cb0297"></a><!-- doxytag: member="rblnk.h::rblnk_iter" ref="ga588a122bb585e30d2dbc7ef1e6cb0297" args="" -->
*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_xBA_xA2_xE9_xBB_x91_xE6_xA0_x91.html#ga588a122bb585e30d2dbc7ef1e6cb0297">rblnk_iter</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">迭代器 <br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>详细描述</h2>
<div class="textblock"><p>Red-black linked tree. </p>
<p>Copyright (C) 2012-2022, Henry Kwok 郭弘扬. All rights reserved </p>

<p>在文件<a class="el" href="rblnk_8h_source.html">rblnk.h</a>中定义。</p>
</div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>数据结构</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>文件</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>类型定义</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>宏定义</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Generated at 2015年七月16日 星期四 12:00:40 for Navo Portable Library by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>
